﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;


namespace ServiceInfrastructure.Models.SecurityModels.Models
{
    [DataContract]
    public class User
    {
        [DataMember(Order = 1, Name = "UserId")]
        public Guid Id { get; set; }

        [DataMember(Order = 2, Name = "Login")]
        public string UserName { get; set; }

        [DataMember(Order = 3)]
        public string Password { get; set; }
        
        [DataMember(Order = 4)]
        public string Email { get; set; }
        
        [DataMember(Order = 5)]
        public ICollection<Role> Roles { get; set; }
    }
}
